<style type="text/css">
      body {
      	background-color: #f5f5f5;
      }

      .container {
      	
      }

      .form-register {
        opacity: 0.9;
        max-width: 300px;
        padding: 5px 29px 20px;
        margin: 0 auto 20px;
        background-color: #fff;
        border: 1px solid #e5e5e5;
        -webkit-border-radius: 5px;
           -moz-border-radius: 5px;
                border-radius: 5px;
        -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
           -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
                box-shadow: 0 1px 2px rgba(0,0,0,.05);
      }

      .header {
      	height: 40px;
      	margin-bottom: 100px;
      	background-color: #006dcc;
    	 *background-color: #0044cc;
    	  background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
    	  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
    	  background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
    	  background-image: -o-linear-gradient(top, #0088cc, #0044cc);
    	  background-image: linear-gradient(to bottom, #0088cc, #0044cc);
    	  background-repeat: repeat-x;
    	  border-color: #0044cc #0044cc #002a80;
    	  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
      }


</style>
<div class="header">

</div>

<div class="container">
<%= form_tag({:controller => "portal", :action => "register"}, :method => "post", :class => "form-register") do %>
  <h3 class="form-signin-heading"><%= @type %> registration form</h3>
    <%= text_field_tag "name",nil,:class => "span3",:placeholder=>"Name" %>
    <%= text_field_tag "surname",nil,:class => "span3",:placeholder=>"Surname" %>
    <%= email_field_tag "email",nil,:class => "span3",:placeholder=>"Email address" %>
    <%= hidden_field_tag "type",@type %>
  	<% if (@type=="Student") %>
    <select name="group" placeholder="Faculty">
  	   <% @groups.each do |group| %>
     <option value="<%= group.id %>"> <%="#{group.name} #{group.faculty} #{group.course}"%> </option>

    <% end %>
  </select>
  	  <% end
  	%>
    <%= password_field_tag "password",nil,:class=>"span3",:placeholder=>"Password" %>
  
    <%= password_field_tag "passwordcon",nil,:class => "span3",:placeholder=>"Password Confirmation" %>
  </br>
  <%= submit_tag "Save",:class=>"btn btn-medium btn-primary"%>
<% end %>
	
</div>